package com.hunan.anmo.app.anmo_app;
import io.flutter.plugins.GeneratedPluginRegistrant;
import io.flutter.embedding.android.FlutterActivity;
import androidx.annotation.NonNull;
import io.flutter.embedding.engine.FlutterEngine;

// 引入
import android.os.Build;
import android.os.Bundle;
public class MainActivity extends FlutterActivity {
    @Override
 public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
 GeneratedPluginRegistrant.registerWith(flutterEngine);
 }
 
 // 设置状态栏沉浸式透明（修改flutter状态栏黑色半透明为全透明）
 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
 getWindow().setStatusBarColor(0);
 }
 }
}
